var status = -1;
var selectionLog = [];

function start() {
    action(1, 0, 0)
}

function action(d, c, b) {
    if (status == 0 && d == 0) {
        cm.dispose();
        return
    }(d == 1) ? status++ : status--;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        cm.dispose()
    } else {
        if (status === a++) {
            cm.dispose();
            cm.updateInfoQuest(39051, "t0=5;t1=0;t2=0;t3=0;t4=0;c0=0;c1=0;c2=0;c3=0;c4=0;c5=0");
            cm.updateInfoQuest(39052, "t0=3;c0=0;c1=0;c2=0;c3=0");
            cm.神秘河快速通道(1)
        }
    }
};